home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Games / dynAMIte / Developer / GFA / DYNABOT.GFA (.txt) next >
Encoding:
GFA-BASIC Amiga  |  2001-07-22  |  7.2 KB  |  179 lines

  1. GFA-AMIGAB
  2. SEMA    OURPLAYER
  3. DELAY
  4. THISPLAYER
  5. STDOUT
  6. DOSTUFF
  7. FINDSEMAPHORE
  8. CHECKSIGNAL
  9. OBTAINSEMAPHORE
  10. RELEASESEMAPHORE
  11. This is dynabot translated to GFA (GeFAhr) Basic
  12. GFA-Basic suxx big time but anyway.. maybe someone has usage for this one.
  13. offsets/structures are as follows
  14. (----) OBJECT dynamitesemaphore
  15. (   0)   sema:ss (or ARRAY OF ss)
  16. (  46)   opencnt:LONG
  17. (  50)   quit:LONG
  18. (  54)   gamerunning:LONG
  19. (  58)   frames:LONG
  20. (  62)   walk:LONG
  21. (  66)   drop:LONG
  22. (  70)   dropkick:LONG
  23. (  74)   thisplayer:LONG
  24. (  78)   player:PTR TO LONG
  25. (  82)   mapwidth:LONG
  26. (  86)   mapheight:LONG
  27. (  90)   grid:PTR TO LONG
  28. (  94)   bonusgrid:PTR TO LONG
  29. (  98)   addbubble:PTR TO CHAR
  30. ( 102)   serverdata:PTR TO serverdata
  31. ( 106)   explosiongrid:PTR TO LONG
  32. ( 110)   version:LONG
  33. ( 114)   botinfo:PTR TO LONG
  34. (----) ENDOBJECT     /* SIZEOF=118 */
  35. (----) OBJECT player
  36. (   0)   num:INT
  37. (   2)   status:LONG
  38. (   6)   dead:INT
  39. (   8)   x:INT
  40. (  10)   y:INT
  41. (  12)   px:INT
  42. (  14)   py:INT
  43. (  16)   bombc:INT
  44. (  18)   maxkickbombs:INT
  45. (  20)   bomblist:PTR TO mlh
  46. (  24)   remotebomb:PTR TO tempbomb
  47. (  28)   kickbomb:PTR TO tempbomb
  48. (  32)   maxrange:INT
  49. (  34)   maxbombs:INT
  50. (  36)   fuselen:INT
  51. (  38)   speed:INT
  52. (  40)   speedc:INT
  53. (  42)   swaprlc:INT
  54. (  44)   swapudc:INT
  55. (  46)   nodropc:INT
  56. (  48)   shieldc:INT
  57. (  50)   standstillc:INT
  58. (  52)   invisiblec:INT
  59. (  54)   afterburnerc:INT
  60. (  56)   b2bc:INT
  61. (  58)   flamethrowerc:INT
  62. (  60)   flamethrowerdir:INT
  63. (  62)   flamethrowerr:INT
  64. (  64)   magnetc:INT
  65. (  66)   magnetdir:INT
  66. (  68)   name[34]:ARRAY OF CHAR
  67. ( 102)   system[64]:ARRAY OF CHAR
  68. (----) ENDOBJECT     /* SIZEOF=166 */
  69. (----) OBJECT tempbomb
  70. (   0)   ln:mln (or ARRAY OF mln)
  71. (   8)   x:INT
  72. (  10)   y:INT
  73. (  12)   x1:INT
  74. (  14)   y1:INT
  75. (  16)   fuse:INT
  76. (  18)   range:LONG
  77. (  22)   dir:INT
  78. (  24)   originx:INT
  79. (  26)   originy:INT
  80. (  28)   type:INT
  81. (----) ENDOBJECT     /* SIZEOF=30 */
  82. (----) OBJECT serverdata
  83. (   0)   servername[34]:ARRAY OF CHAR
  84. (  34)   sysopname[18]:ARRAY OF CHAR
  85. (  52)   maxslots:INT
  86. (  54)   maxobservers:INT
  87. (----) ENDOBJECT     /* SIZEOF=56 */
  88. ENUM  PA_NONE=0, -> no player
  89.      PA_VISI,   -> player is visitor
  90.      PA_LOGGEDIN, -> player just logged in/after a game
  91.      PA_PLAYING,  -> player is in game (no matter if he's dead)
  92.      PA_COUNTDOWN, -> this is of no use. players only have this status if they logged in.
  93.      PA_DEAD, -> this is of no use, it's not meant to see if a player is
  94.               -> actually dead.  use player.dead instead.  it's only set
  95.               -> after a successfull login for the other players
  96.      PA_WON -> a player has this status if he won the last round
  97. -> dynasema.gamerunning
  98. ENUM  GAME_CLOSEGAME=0, -> transitional state to GAME_NOTCONNECTED after connection got closed
  99.      GAME_MENU,        -> game is in menu eg: login screen
  100.      GAME_ENDGAME,     -> transitional state to GAME_MENU after effect has been drawn
  101.      GAME_EFFECT,      -> game draws effect after a match
  102.      GAME_COUNTDOWN,   -> game is doing the countdown
  103.      GAME_GAME,        -> game is running
  104.      GAME_HURRYUP,     -> game is running and is in hurry up mode
  105.      GAME_NOTCONNECTED -> game is not connected (startscreen)
  106. ENUM  DIR_NONE=-1,
  107.      DIR_DOWN,
  108.      DIR_RIGHT,
  109.      DIR_LEFT,
  110.      DIR_UP
  111. CONST SPEED_NORMAL=4,
  112.      SPEED_SLOW=3,
  113.      SPEED_FAST=6
  114. CONST BLOCK_FAKEBLOCK=-1,    -> used for remote/kick bombs which are placed into the map
  115.      BLOCK_NOBLOCK=0,       -> empty field
  116.      BLOCK_HARDBLOCK=1,     -> non-destroyable block
  117.      BLOCK_DESTROYABLE=2,   -> destroyable block
  118.      BLOCK_BOMB=3,          -> normal bomb
  119.      BLOCK_BORDERWALL1=4,   -> borderblocks are equal to hardblock
  120.      BLOCK_BORDERWALL2=5,
  121.      BLOCK_BORDERWALL3=6,
  122.      BLOCK_BORDERWALL4=7,
  123.      BLOCK_BORDERWALL5=8,
  124.      BLOCK_BORDERWALL6=10,
  125.      BLOCK_BORDERWALL7=11,
  126.      BLOCK_BORDERWALL8=12,
  127.      BLOCK_BORDERWALL9=13,
  128.      BLOCK_BORDERWALL10=14,
  129.      BLOCK_BORDERWALL11=15,
  130.      BLOCK_BORDERWALL12=16,
  131.      BLOCK_ADDBOMB=19    -> block which contains a bomb
  132. ENUM  BO_EXPANDFLAME=1, -> types for bonusgrid
  133.      BO_ADDBOMB,
  134.      BO_FLAMEMAX,
  135.      BO_BOMBMAX,
  136.      BO_RANDOMWALL,  -> 5
  137.      BO_BOMBS2BLOCKS,
  138.      BO_DROPALL,
  139.      BO_EXPLALL,
  140.      BO_FASTER,
  141.      BO_SLOWER,      -> 10
  142.      BO_SHORTERFUSE,
  143.      BO_LONGERFUSE,
  144.      BO_SHORTERFLAME,
  145.      BO_SWAPCONTROLSRL,
  146.      BO_FEWERBOMBS,  -> 15
  147.      BO_NODROP,
  148.      BO_SHIELD,
  149.      BO_STANDSTILL,
  150.      BO_TELEPORT,
  151.      BO_REMOTEBOMB,  -> 20
  152.      BO_BACK2BASIC,
  153.      BO_KICKBOMB,
  154.      BO_SABER,
  155.      BO_SWAPCONTROLSUD,
  156.      BO_MAGNET,      -> 25
  157.      BO_PHOENIX,
  158.      BO_DOHURRYUP,
  159.      BO_INVISIBLE,
  160.      BO_DUELL,
  161.      BO_AFTERBURNER,  -> 30
  162.      BO_FLAG,
  163.      BO_TELEPORTALL,
  164.      BO_MAPJUMP,
  165.      BO_RESTARTMAP,
  166.      BO_SWAPPOSITIONS, -> 35
  167.      BO_MAX
  168. -> types for tempbomb.type
  169. ENUM  BOMB_NORMAL=0,  -> normal bomb
  170.      BOMB_GEN,       -> predefined bomb (map)
  171.      BOMB_REMOTE,    -> remote bomb
  172.      BOMB_KICK       -> kick bomb
  173. "$VER:dynabot 0.1 (17.07.2001) translated by Ingo Musquinier"
  174. dynAMIte.0
  175. dynAMIte is running F
  176. dynAMIte is NOT running F
  177. dynAMIte is about to quit F
  178. do your AI-Stuff here..
  179.